package cn.gson.crm.controller.counselor;

import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import cn.gson.crm.controller.BaseServlet;
import cn.gson.crm.model.dao.StudentPoDao;

@WebServlet("/counselor/delete")
public class CustomerDelete extends BaseServlet {
	/**
	 * 删除潜在客户
	 */
	private static final long serialVersionUID = 1L;

	private StudentPoDao stuPoDao = new StudentPoDao();
		@Override
		protected void get(HttpServletRequest request, HttpServletResponse response) throws Exception {
			String[] ids= request.getParameterValues("id");
			for (String id : ids) {
				stuPoDao.deleStudentById(Integer.parseInt(id));
			}
			redirect("counselor/mycustomer");
		}
}
